home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCanvasRenderingContext2D.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  35KB  |  805 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCanvasRenderingContext2D.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCanvasRenderingContext2D_h__
  6. #define __gen_nsIDOMCanvasRenderingContext2D_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIVariant_h__
  14. #include "nsIVariant.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIDOMWindow; /* forward declaration */
  22.  
  23. class nsIDOMHTMLImageElement; /* forward declaration */
  24.  
  25. class nsIDOMHTMLCanvasElement; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIDOMCanvasGradient */
  29. #define NS_IDOMCANVASGRADIENT_IID_STR "bbb20a59-524e-4662-981e-5e142814b20c"
  30.  
  31. #define NS_IDOMCANVASGRADIENT_IID \
  32.   {0xbbb20a59, 0x524e, 0x4662, \
  33.     { 0x98, 0x1e, 0x5e, 0x14, 0x28, 0x14, 0xb2, 0x0c }}
  34.  
  35. class NS_NO_VTABLE nsIDOMCanvasGradient : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASGRADIENT_IID)
  39.  
  40.   /* void addColorStop (in float offset, in DOMString color); */
  41.   NS_IMETHOD AddColorStop(float offset, const nsAString & color) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIDOMCANVASGRADIENT \
  47.   NS_IMETHOD AddColorStop(float offset, const nsAString & color); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSIDOMCANVASGRADIENT(_to) \
  51.   NS_IMETHOD AddColorStop(float offset, const nsAString & color) { return _to AddColorStop(offset, color); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSIDOMCANVASGRADIENT(_to) \
  55.   NS_IMETHOD AddColorStop(float offset, const nsAString & color) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddColorStop(offset, color); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsDOMCanvasGradient : public nsIDOMCanvasGradient
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIDOMCANVASGRADIENT
  66.  
  67.   nsDOMCanvasGradient();
  68.  
  69. private:
  70.   ~nsDOMCanvasGradient();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsDOMCanvasGradient, nsIDOMCanvasGradient)
  78.  
  79. nsDOMCanvasGradient::nsDOMCanvasGradient()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsDOMCanvasGradient::~nsDOMCanvasGradient()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void addColorStop (in float offset, in DOMString color); */
  90. NS_IMETHODIMP nsDOMCanvasGradient::AddColorStop(float offset, const nsAString & color)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98.  
  99. /* starting interface:    nsIDOMCanvasPattern */
  100. #define NS_IDOMCANVASPATTERN_IID_STR "21dea65c-5c08-4eb1-ac82-81fe95be77b8"
  101.  
  102. #define NS_IDOMCANVASPATTERN_IID \
  103.   {0x21dea65c, 0x5c08, 0x4eb1, \
  104.     { 0xac, 0x82, 0x81, 0xfe, 0x95, 0xbe, 0x77, 0xb8 }}
  105.  
  106. class NS_NO_VTABLE nsIDOMCanvasPattern : public nsISupports {
  107.  public: 
  108.  
  109.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASPATTERN_IID)
  110.  
  111. };
  112.  
  113. /* Use this macro when declaring classes that implement this interface. */
  114. #define NS_DECL_NSIDOMCANVASPATTERN \
  115.   /* no methods! */
  116.  
  117. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  118. #define NS_FORWARD_NSIDOMCANVASPATTERN(_to) \
  119.   /* no methods! */
  120.  
  121. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  122. #define NS_FORWARD_SAFE_NSIDOMCANVASPATTERN(_to) \
  123.   /* no methods! */
  124.  
  125. #if 0
  126. /* Use the code below as a template for the implementation class for this interface. */
  127.  
  128. /* Header file */
  129. class nsDOMCanvasPattern : public nsIDOMCanvasPattern
  130. {
  131. public:
  132.   NS_DECL_ISUPPORTS
  133.   NS_DECL_NSIDOMCANVASPATTERN
  134.  
  135.   nsDOMCanvasPattern();
  136.  
  137. private:
  138.   ~nsDOMCanvasPattern();
  139.  
  140. protected:
  141.   /* additional members */
  142. };
  143.  
  144. /* Implementation file */
  145. NS_IMPL_ISUPPORTS1(nsDOMCanvasPattern, nsIDOMCanvasPattern)
  146.  
  147. nsDOMCanvasPattern::nsDOMCanvasPattern()
  148. {
  149.   /* member initializers and constructor code */
  150. }
  151.  
  152. nsDOMCanvasPattern::~nsDOMCanvasPattern()
  153. {
  154.   /* destructor code */
  155. }
  156.  
  157. /* End of implementation class template. */
  158. #endif
  159.  
  160.  
  161. /* starting interface:    nsIDOMCanvasRenderingContext2D */
  162. #define NS_IDOMCANVASRENDERINGCONTEXT2D_IID_STR "15487cf4-292b-49aa-bc36-17d9099f77a7"
  163.  
  164. #define NS_IDOMCANVASRENDERINGCONTEXT2D_IID \
  165.   {0x15487cf4, 0x292b, 0x49aa, \
  166.     { 0xbc, 0x36, 0x17, 0xd9, 0x09, 0x9f, 0x77, 0xa7 }}
  167.  
  168. class NS_NO_VTABLE nsIDOMCanvasRenderingContext2D : public nsISupports {
  169.  public: 
  170.  
  171.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASRENDERINGCONTEXT2D_IID)
  172.  
  173.   /* readonly attribute nsIDOMHTMLCanvasElement canvas; */
  174.   NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) = 0;
  175.  
  176.   /* void save (); */
  177.   NS_IMETHOD Save(void) = 0;
  178.  
  179.   /* void restore (); */
  180.   NS_IMETHOD Restore(void) = 0;
  181.  
  182.   /* void scale (in float x, in float y); */
  183.   NS_IMETHOD Scale(float x, float y) = 0;
  184.  
  185.   /* void rotate (in float angle); */
  186.   NS_IMETHOD Rotate(float angle) = 0;
  187.  
  188.   /* void translate (in float x, in float y); */
  189.   NS_IMETHOD Translate(float x, float y) = 0;
  190.  
  191.   /* attribute float globalAlpha; */
  192.   NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) = 0;
  193.   NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) = 0;
  194.  
  195.   /* attribute DOMString globalCompositeOperation; */
  196.   NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) = 0;
  197.   NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) = 0;
  198.  
  199.   /* attribute nsIVariant strokeStyle; */
  200.   NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) = 0;
  201.   NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) = 0;
  202.  
  203.   /* attribute nsIVariant fillStyle; */
  204.   NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) = 0;
  205.   NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) = 0;
  206.  
  207.   /* nsIDOMCanvasGradient createLinearGradient (in float x0, in float y0, in float x1, in float y1); */
  208.   NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) = 0;
  209.  
  210.   /* nsIDOMCanvasGradient createRadialGradient (in float x0, in float y0, in float r0, in float x1, in float y1, in float r1); */
  211.   NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) = 0;
  212.  
  213.   /* nsIDOMCanvasPattern createPattern (in nsIDOMHTMLImageElement image, in DOMString repetition); */
  214.   NS_IMETHOD CreatePattern(nsIDOMHTMLImageElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) = 0;
  215.  
  216.   /* attribute float lineWidth; */
  217.   NS_IMETHOD GetLineWidth(float *aLineWidth) = 0;
  218.   NS_IMETHOD SetLineWidth(float aLineWidth) = 0;
  219.  
  220.   /* attribute DOMString lineCap; */
  221.   NS_IMETHOD GetLineCap(nsAString & aLineCap) = 0;
  222.   NS_IMETHOD SetLineCap(const nsAString & aLineCap) = 0;
  223.  
  224.   /* attribute DOMString lineJoin; */
  225.   NS_IMETHOD GetLineJoin(nsAString & aLineJoin) = 0;
  226.   NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) = 0;
  227.  
  228.   /* attribute float miterLimit; */
  229.   NS_IMETHOD GetMiterLimit(float *aMiterLimit) = 0;
  230.   NS_IMETHOD SetMiterLimit(float aMiterLimit) = 0;
  231.  
  232.   /* attribute float shadowOffsetX; */
  233.   NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) = 0;
  234.   NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) = 0;
  235.  
  236.   /* attribute float shadowOffsetY; */
  237.   NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) = 0;
  238.   NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) = 0;
  239.  
  240.   /* attribute float shadowBlur; */
  241.   NS_IMETHOD GetShadowBlur(float *aShadowBlur) = 0;
  242.   NS_IMETHOD SetShadowBlur(float aShadowBlur) = 0;
  243.  
  244.   /* attribute DOMString shadowColor; */
  245.   NS_IMETHOD GetShadowColor(nsAString & aShadowColor) = 0;
  246.   NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) = 0;
  247.  
  248.   /* void clearRect (in float x, in float y, in float w, in float h); */
  249.   NS_IMETHOD ClearRect(float x, float y, float w, float h) = 0;
  250.  
  251.   /* void fillRect (in float x, in float y, in float w, in float h); */
  252.   NS_IMETHOD FillRect(float x, float y, float w, float h) = 0;
  253.  
  254.   /* void strokeRect (in float x, in float y, in float w, in float h); */
  255.   NS_IMETHOD StrokeRect(float x, float y, float w, float h) = 0;
  256.  
  257.   /* void beginPath (); */
  258.   NS_IMETHOD BeginPath(void) = 0;
  259.  
  260.   /* void closePath (); */
  261.   NS_IMETHOD ClosePath(void) = 0;
  262.  
  263.   /* void moveTo (in float x, in float y); */
  264.   NS_IMETHOD MoveTo(float x, float y) = 0;
  265.  
  266.   /* void lineTo (in float x, in float y); */
  267.   NS_IMETHOD LineTo(float x, float y) = 0;
  268.  
  269.   /* void quadraticCurveTo (in float cpx, in float cpy, in float x, in float y); */
  270.   NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) = 0;
  271.  
  272.   /* void bezierCurveTo (in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y); */
  273.   NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) = 0;
  274.  
  275.   /* void arcTo (in float x1, in float y1, in float x2, in float y2, in float radius); */
  276.   NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) = 0;
  277.  
  278.   /* void arc (in float x, in float y, in float r, in float startAngle, in float endAngle, in boolean clockwise); */
  279.   NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) = 0;
  280.  
  281.   /* void rect (in float x, in float y, in float w, in float h); */
  282.   NS_IMETHOD Rect(float x, float y, float w, float h) = 0;
  283.  
  284.   /* void fill (); */
  285.   NS_IMETHOD Fill(void) = 0;
  286.  
  287.   /* void stroke (); */
  288.   NS_IMETHOD Stroke(void) = 0;
  289.  
  290.   /* void clip (); */
  291.   NS_IMETHOD Clip(void) = 0;
  292.  
  293.   /* void drawImage (); */
  294.   NS_IMETHOD DrawImage(void) = 0;
  295.  
  296.   /**
  297.    * Renders a region of a window into the canvas.  The contents of
  298.    * the window's viewport are rendered, ignoring viewport clipping
  299.    * and scrolling.
  300.    *
  301.    * @param x
  302.    * @param y
  303.    * @param w
  304.    * @param h specify the area of the window to render, in CSS
  305.    * pixels.
  306.    *
  307.    * @param backgroundColor the canvas is filled with this color
  308.    * before we render the window into it. This color may be
  309.    * transparent/translucent. It is given as a CSS color string
  310.    * (e.g., rgb() or rgba()).
  311.    *
  312.    * Of course, the rendering obeys the current scale, transform and
  313.    * globalAlpha values.
  314.    *
  315.    * Hints:
  316.    * -- If 'rgba(0,0,0,0)' is used for the background color, the
  317.    * drawing will be transparent wherever the window is transparent.
  318.    * -- Top-level browsed documents are usually not transparent
  319.    * because the user's background-color preference is applied,
  320.    * but IFRAMEs are transparent if the page doesn't set a background.
  321.    * -- If an opaque color is used for the background color, rendering
  322.    * will be faster because we won't have to compute the window's
  323.    * transparency.
  324.    *
  325.    * This API cannot currently be used by Web content. It is chrome
  326.    * only.
  327.    */
  328.   /* void drawWindow (in nsIDOMWindow window, in long x, in long y, in long w, in long h, in DOMString bgColor); */
  329.   NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) = 0;
  330.  
  331. };
  332.  
  333. /* Use this macro when declaring classes that implement this interface. */
  334. #define NS_DECL_NSIDOMCANVASRENDERINGCONTEXT2D \
  335.   NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas); \
  336.   NS_IMETHOD Save(void); \
  337.   NS_IMETHOD Restore(void); \
  338.   NS_IMETHOD Scale(float x, float y); \
  339.   NS_IMETHOD Rotate(float angle); \
  340.   NS_IMETHOD Translate(float x, float y); \
  341.   NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha); \
  342.   NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha); \
  343.   NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation); \
  344.   NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation); \
  345.   NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle); \
  346.   NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle); \
  347.   NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle); \
  348.   NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle); \
  349.   NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval); \
  350.   NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval); \
  351.   NS_IMETHOD CreatePattern(nsIDOMHTMLImageElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval); \
  352.   NS_IMETHOD GetLineWidth(float *aLineWidth); \
  353.   NS_IMETHOD SetLineWidth(float aLineWidth); \
  354.   NS_IMETHOD GetLineCap(nsAString & aLineCap); \
  355.   NS_IMETHOD SetLineCap(const nsAString & aLineCap); \
  356.   NS_IMETHOD GetLineJoin(nsAString & aLineJoin); \
  357.   NS_IMETHOD SetLineJoin(const nsAString & aLineJoin); \
  358.   NS_IMETHOD GetMiterLimit(float *aMiterLimit); \
  359.   NS_IMETHOD SetMiterLimit(float aMiterLimit); \
  360.   NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX); \
  361.   NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX); \
  362.   NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY); \
  363.   NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY); \
  364.   NS_IMETHOD GetShadowBlur(float *aShadowBlur); \
  365.   NS_IMETHOD SetShadowBlur(float aShadowBlur); \
  366.   NS_IMETHOD GetShadowColor(nsAString & aShadowColor); \
  367.   NS_IMETHOD SetShadowColor(const nsAString & aShadowColor); \
  368.   NS_IMETHOD ClearRect(float x, float y, float w, float h); \
  369.   NS_IMETHOD FillRect(float x, float y, float w, float h); \
  370.   NS_IMETHOD StrokeRect(float x, float y, float w, float h); \
  371.   NS_IMETHOD BeginPath(void); \
  372.   NS_IMETHOD ClosePath(void); \
  373.   NS_IMETHOD MoveTo(float x, float y); \
  374.   NS_IMETHOD LineTo(float x, float y); \
  375.   NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y); \
  376.   NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); \
  377.   NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius); \
  378.   NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise); \
  379.   NS_IMETHOD Rect(float x, float y, float w, float h); \
  380.   NS_IMETHOD Fill(void); \
  381.   NS_IMETHOD Stroke(void); \
  382.   NS_IMETHOD Clip(void); \
  383.   NS_IMETHOD DrawImage(void); \
  384.   NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor); 
  385.  
  386. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  387. #define NS_FORWARD_NSIDOMCANVASRENDERINGCONTEXT2D(_to) \
  388.   NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) { return _to GetCanvas(aCanvas); } \
  389.   NS_IMETHOD Save(void) { return _to Save(); } \
  390.   NS_IMETHOD Restore(void) { return _to Restore(); } \
  391.   NS_IMETHOD Scale(float x, float y) { return _to Scale(x, y); } \
  392.   NS_IMETHOD Rotate(float angle) { return _to Rotate(angle); } \
  393.   NS_IMETHOD Translate(float x, float y) { return _to Translate(x, y); } \
  394.   NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) { return _to GetGlobalAlpha(aGlobalAlpha); } \
  395.   NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) { return _to SetGlobalAlpha(aGlobalAlpha); } \
  396.   NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) { return _to GetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  397.   NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) { return _to SetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  398.   NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) { return _to GetStrokeStyle(aStrokeStyle); } \
  399.   NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) { return _to SetStrokeStyle(aStrokeStyle); } \
  400.   NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) { return _to GetFillStyle(aFillStyle); } \
  401.   NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) { return _to SetFillStyle(aFillStyle); } \
  402.   NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) { return _to CreateLinearGradient(x0, y0, x1, y1, _retval); } \
  403.   NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) { return _to CreateRadialGradient(x0, y0, r0, x1, y1, r1, _retval); } \
  404.   NS_IMETHOD CreatePattern(nsIDOMHTMLImageElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) { return _to CreatePattern(image, repetition, _retval); } \
  405.   NS_IMETHOD GetLineWidth(float *aLineWidth) { return _to GetLineWidth(aLineWidth); } \
  406.   NS_IMETHOD SetLineWidth(float aLineWidth) { return _to SetLineWidth(aLineWidth); } \
  407.   NS_IMETHOD GetLineCap(nsAString & aLineCap) { return _to GetLineCap(aLineCap); } \
  408.   NS_IMETHOD SetLineCap(const nsAString & aLineCap) { return _to SetLineCap(aLineCap); } \
  409.   NS_IMETHOD GetLineJoin(nsAString & aLineJoin) { return _to GetLineJoin(aLineJoin); } \
  410.   NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) { return _to SetLineJoin(aLineJoin); } \
  411.   NS_IMETHOD GetMiterLimit(float *aMiterLimit) { return _to GetMiterLimit(aMiterLimit); } \
  412.   NS_IMETHOD SetMiterLimit(float aMiterLimit) { return _to SetMiterLimit(aMiterLimit); } \
  413.   NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) { return _to GetShadowOffsetX(aShadowOffsetX); } \
  414.   NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) { return _to SetShadowOffsetX(aShadowOffsetX); } \
  415.   NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) { return _to GetShadowOffsetY(aShadowOffsetY); } \
  416.   NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) { return _to SetShadowOffsetY(aShadowOffsetY); } \
  417.   NS_IMETHOD GetShadowBlur(float *aShadowBlur) { return _to GetShadowBlur(aShadowBlur); } \
  418.   NS_IMETHOD SetShadowBlur(float aShadowBlur) { return _to SetShadowBlur(aShadowBlur); } \
  419.   NS_IMETHOD GetShadowColor(nsAString & aShadowColor) { return _to GetShadowColor(aShadowColor); } \
  420.   NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) { return _to SetShadowColor(aShadowColor); } \
  421.   NS_IMETHOD ClearRect(float x, float y, float w, float h) { return _to ClearRect(x, y, w, h); } \
  422.   NS_IMETHOD FillRect(float x, float y, float w, float h) { return _to FillRect(x, y, w, h); } \
  423.   NS_IMETHOD StrokeRect(float x, float y, float w, float h) { return _to StrokeRect(x, y, w, h); } \
  424.   NS_IMETHOD BeginPath(void) { return _to BeginPath(); } \
  425.   NS_IMETHOD ClosePath(void) { return _to ClosePath(); } \
  426.   NS_IMETHOD MoveTo(float x, float y) { return _to MoveTo(x, y); } \
  427.   NS_IMETHOD LineTo(float x, float y) { return _to LineTo(x, y); } \
  428.   NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) { return _to QuadraticCurveTo(cpx, cpy, x, y); } \
  429.   NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) { return _to BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); } \
  430.   NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) { return _to ArcTo(x1, y1, x2, y2, radius); } \
  431.   NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) { return _to Arc(x, y, r, startAngle, endAngle, clockwise); } \
  432.   NS_IMETHOD Rect(float x, float y, float w, float h) { return _to Rect(x, y, w, h); } \
  433.   NS_IMETHOD Fill(void) { return _to Fill(); } \
  434.   NS_IMETHOD Stroke(void) { return _to Stroke(); } \
  435.   NS_IMETHOD Clip(void) { return _to Clip(); } \
  436.   NS_IMETHOD DrawImage(void) { return _to DrawImage(); } \
  437.   NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) { return _to DrawWindow(window, x, y, w, h, bgColor); } 
  438.  
  439. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  440. #define NS_FORWARD_SAFE_NSIDOMCANVASRENDERINGCONTEXT2D(_to) \
  441.   NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanvas(aCanvas); } \
  442.   NS_IMETHOD Save(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
  443.   NS_IMETHOD Restore(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Restore(); } \
  444.   NS_IMETHOD Scale(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->Scale(x, y); } \
  445.   NS_IMETHOD Rotate(float angle) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rotate(angle); } \
  446.   NS_IMETHOD Translate(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->Translate(x, y); } \
  447.   NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalAlpha(aGlobalAlpha); } \
  448.   NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGlobalAlpha(aGlobalAlpha); } \
  449.   NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  450.   NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  451.   NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeStyle(aStrokeStyle); } \
  452.   NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeStyle(aStrokeStyle); } \
  453.   NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillStyle(aFillStyle); } \
  454.   NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFillStyle(aFillStyle); } \
  455.   NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLinearGradient(x0, y0, x1, y1, _retval); } \
  456.   NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRadialGradient(x0, y0, r0, x1, y1, r1, _retval); } \
  457.   NS_IMETHOD CreatePattern(nsIDOMHTMLImageElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreatePattern(image, repetition, _retval); } \
  458.   NS_IMETHOD GetLineWidth(float *aLineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineWidth(aLineWidth); } \
  459.   NS_IMETHOD SetLineWidth(float aLineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineWidth(aLineWidth); } \
  460.   NS_IMETHOD GetLineCap(nsAString & aLineCap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineCap(aLineCap); } \
  461.   NS_IMETHOD SetLineCap(const nsAString & aLineCap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineCap(aLineCap); } \
  462.   NS_IMETHOD GetLineJoin(nsAString & aLineJoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineJoin(aLineJoin); } \
  463.   NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineJoin(aLineJoin); } \
  464.   NS_IMETHOD GetMiterLimit(float *aMiterLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMiterLimit(aMiterLimit); } \
  465.   NS_IMETHOD SetMiterLimit(float aMiterLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMiterLimit(aMiterLimit); } \
  466.   NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowOffsetX(aShadowOffsetX); } \
  467.   NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowOffsetX(aShadowOffsetX); } \
  468.   NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowOffsetY(aShadowOffsetY); } \
  469.   NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowOffsetY(aShadowOffsetY); } \
  470.   NS_IMETHOD GetShadowBlur(float *aShadowBlur) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowBlur(aShadowBlur); } \
  471.   NS_IMETHOD SetShadowBlur(float aShadowBlur) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowBlur(aShadowBlur); } \
  472.   NS_IMETHOD GetShadowColor(nsAString & aShadowColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowColor(aShadowColor); } \
  473.   NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowColor(aShadowColor); } \
  474.   NS_IMETHOD ClearRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearRect(x, y, w, h); } \
  475.   NS_IMETHOD FillRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->FillRect(x, y, w, h); } \
  476.   NS_IMETHOD StrokeRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->StrokeRect(x, y, w, h); } \
  477.   NS_IMETHOD BeginPath(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginPath(); } \
  478.   NS_IMETHOD ClosePath(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClosePath(); } \
  479.   NS_IMETHOD MoveTo(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(x, y); } \
  480.   NS_IMETHOD LineTo(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->LineTo(x, y); } \
  481.   NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->QuadraticCurveTo(cpx, cpy, x, y); } \
  482.   NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); } \
  483.   NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcTo(x1, y1, x2, y2, radius); } \
  484.   NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) { return !_to ? NS_ERROR_NULL_POINTER : _to->Arc(x, y, r, startAngle, endAngle, clockwise); } \
  485.   NS_IMETHOD Rect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rect(x, y, w, h); } \
  486.   NS_IMETHOD Fill(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Fill(); } \
  487.   NS_IMETHOD Stroke(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stroke(); } \
  488.   NS_IMETHOD Clip(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clip(); } \
  489.   NS_IMETHOD DrawImage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DrawImage(); } \
  490.   NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->DrawWindow(window, x, y, w, h, bgColor); } 
  491.  
  492. #if 0
  493. /* Use the code below as a template for the implementation class for this interface. */
  494.  
  495. /* Header file */
  496. class nsDOMCanvasRenderingContext2D : public nsIDOMCanvasRenderingContext2D
  497. {
  498. public:
  499.   NS_DECL_ISUPPORTS
  500.   NS_DECL_NSIDOMCANVASRENDERINGCONTEXT2D
  501.  
  502.   nsDOMCanvasRenderingContext2D();
  503.  
  504. private:
  505.   ~nsDOMCanvasRenderingContext2D();
  506.  
  507. protected:
  508.   /* additional members */
  509. };
  510.  
  511. /* Implementation file */
  512. NS_IMPL_ISUPPORTS1(nsDOMCanvasRenderingContext2D, nsIDOMCanvasRenderingContext2D)
  513.  
  514. nsDOMCanvasRenderingContext2D::nsDOMCanvasRenderingContext2D()
  515. {
  516.   /* member initializers and constructor code */
  517. }
  518.  
  519. nsDOMCanvasRenderingContext2D::~nsDOMCanvasRenderingContext2D()
  520. {
  521.   /* destructor code */
  522. }
  523.  
  524. /* readonly attribute nsIDOMHTMLCanvasElement canvas; */
  525. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas)
  526. {
  527.     return NS_ERROR_NOT_IMPLEMENTED;
  528. }
  529.  
  530. /* void save (); */
  531. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Save()
  532. {
  533.     return NS_ERROR_NOT_IMPLEMENTED;
  534. }
  535.  
  536. /* void restore (); */
  537. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Restore()
  538. {
  539.     return NS_ERROR_NOT_IMPLEMENTED;
  540. }
  541.  
  542. /* void scale (in float x, in float y); */
  543. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Scale(float x, float y)
  544. {
  545.     return NS_ERROR_NOT_IMPLEMENTED;
  546. }
  547.  
  548. /* void rotate (in float angle); */
  549. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Rotate(float angle)
  550. {
  551.     return NS_ERROR_NOT_IMPLEMENTED;
  552. }
  553.  
  554. /* void translate (in float x, in float y); */
  555. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Translate(float x, float y)
  556. {
  557.     return NS_ERROR_NOT_IMPLEMENTED;
  558. }
  559.  
  560. /* attribute float globalAlpha; */
  561. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetGlobalAlpha(float *aGlobalAlpha)
  562. {
  563.     return NS_ERROR_NOT_IMPLEMENTED;
  564. }
  565. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetGlobalAlpha(float aGlobalAlpha)
  566. {
  567.     return NS_ERROR_NOT_IMPLEMENTED;
  568. }
  569.  
  570. /* attribute DOMString globalCompositeOperation; */
  571. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation)
  572. {
  573.     return NS_ERROR_NOT_IMPLEMENTED;
  574. }
  575. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation)
  576. {
  577.     return NS_ERROR_NOT_IMPLEMENTED;
  578. }
  579.  
  580. /* attribute nsIVariant strokeStyle; */
  581. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetStrokeStyle(nsIVariant * *aStrokeStyle)
  582. {
  583.     return NS_ERROR_NOT_IMPLEMENTED;
  584. }
  585. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetStrokeStyle(nsIVariant * aStrokeStyle)
  586. {
  587.     return NS_ERROR_NOT_IMPLEMENTED;
  588. }
  589.  
  590. /* attribute nsIVariant fillStyle; */
  591. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetFillStyle(nsIVariant * *aFillStyle)
  592. {
  593.     return NS_ERROR_NOT_IMPLEMENTED;
  594. }
  595. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetFillStyle(nsIVariant * aFillStyle)
  596. {
  597.     return NS_ERROR_NOT_IMPLEMENTED;
  598. }
  599.  
  600. /* nsIDOMCanvasGradient createLinearGradient (in float x0, in float y0, in float x1, in float y1); */
  601. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval)
  602. {
  603.     return NS_ERROR_NOT_IMPLEMENTED;
  604. }
  605.  
  606. /* nsIDOMCanvasGradient createRadialGradient (in float x0, in float y0, in float r0, in float x1, in float y1, in float r1); */
  607. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval)
  608. {
  609.     return NS_ERROR_NOT_IMPLEMENTED;
  610. }
  611.  
  612. /* nsIDOMCanvasPattern createPattern (in nsIDOMHTMLImageElement image, in DOMString repetition); */
  613. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreatePattern(nsIDOMHTMLImageElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval)
  614. {
  615.     return NS_ERROR_NOT_IMPLEMENTED;
  616. }
  617.  
  618. /* attribute float lineWidth; */
  619. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineWidth(float *aLineWidth)
  620. {
  621.     return NS_ERROR_NOT_IMPLEMENTED;
  622. }
  623. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineWidth(float aLineWidth)
  624. {
  625.     return NS_ERROR_NOT_IMPLEMENTED;
  626. }
  627.  
  628. /* attribute DOMString lineCap; */
  629. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineCap(nsAString & aLineCap)
  630. {
  631.     return NS_ERROR_NOT_IMPLEMENTED;
  632. }
  633. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineCap(const nsAString & aLineCap)
  634. {
  635.     return NS_ERROR_NOT_IMPLEMENTED;
  636. }
  637.  
  638. /* attribute DOMString lineJoin; */
  639. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineJoin(nsAString & aLineJoin)
  640. {
  641.     return NS_ERROR_NOT_IMPLEMENTED;
  642. }
  643. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineJoin(const nsAString & aLineJoin)
  644. {
  645.     return NS_ERROR_NOT_IMPLEMENTED;
  646. }
  647.  
  648. /* attribute float miterLimit; */
  649. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetMiterLimit(float *aMiterLimit)
  650. {
  651.     return NS_ERROR_NOT_IMPLEMENTED;
  652. }
  653. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetMiterLimit(float aMiterLimit)
  654. {
  655.     return NS_ERROR_NOT_IMPLEMENTED;
  656. }
  657.  
  658. /* attribute float shadowOffsetX; */
  659. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowOffsetX(float *aShadowOffsetX)
  660. {
  661.     return NS_ERROR_NOT_IMPLEMENTED;
  662. }
  663. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowOffsetX(float aShadowOffsetX)
  664. {
  665.     return NS_ERROR_NOT_IMPLEMENTED;
  666. }
  667.  
  668. /* attribute float shadowOffsetY; */
  669. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowOffsetY(float *aShadowOffsetY)
  670. {
  671.     return NS_ERROR_NOT_IMPLEMENTED;
  672. }
  673. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowOffsetY(float aShadowOffsetY)
  674. {
  675.     return NS_ERROR_NOT_IMPLEMENTED;
  676. }
  677.  
  678. /* attribute float shadowBlur; */
  679. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowBlur(float *aShadowBlur)
  680. {
  681.     return NS_ERROR_NOT_IMPLEMENTED;
  682. }
  683. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowBlur(float aShadowBlur)
  684. {
  685.     return NS_ERROR_NOT_IMPLEMENTED;
  686. }
  687.  
  688. /* attribute DOMString shadowColor; */
  689. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowColor(nsAString & aShadowColor)
  690. {
  691.     return NS_ERROR_NOT_IMPLEMENTED;
  692. }
  693. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowColor(const nsAString & aShadowColor)
  694. {
  695.     return NS_ERROR_NOT_IMPLEMENTED;
  696. }
  697.  
  698. /* void clearRect (in float x, in float y, in float w, in float h); */
  699. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ClearRect(float x, float y, float w, float h)
  700. {
  701.     return NS_ERROR_NOT_IMPLEMENTED;
  702. }
  703.  
  704. /* void fillRect (in float x, in float y, in float w, in float h); */
  705. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::FillRect(float x, float y, float w, float h)
  706. {
  707.     return NS_ERROR_NOT_IMPLEMENTED;
  708. }
  709.  
  710. /* void strokeRect (in float x, in float y, in float w, in float h); */
  711. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::StrokeRect(float x, float y, float w, float h)
  712. {
  713.     return NS_ERROR_NOT_IMPLEMENTED;
  714. }
  715.  
  716. /* void beginPath (); */
  717. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::BeginPath()
  718. {
  719.     return NS_ERROR_NOT_IMPLEMENTED;
  720. }
  721.  
  722. /* void closePath (); */
  723. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ClosePath()
  724. {
  725.     return NS_ERROR_NOT_IMPLEMENTED;
  726. }
  727.  
  728. /* void moveTo (in float x, in float y); */
  729. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::MoveTo(float x, float y)
  730. {
  731.     return NS_ERROR_NOT_IMPLEMENTED;
  732. }
  733.  
  734. /* void lineTo (in float x, in float y); */
  735. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::LineTo(float x, float y)
  736. {
  737.     return NS_ERROR_NOT_IMPLEMENTED;
  738. }
  739.  
  740. /* void quadraticCurveTo (in float cpx, in float cpy, in float x, in float y); */
  741. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::QuadraticCurveTo(float cpx, float cpy, float x, float y)
  742. {
  743.     return NS_ERROR_NOT_IMPLEMENTED;
  744. }
  745.  
  746. /* void bezierCurveTo (in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y); */
  747. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)
  748. {
  749.     return NS_ERROR_NOT_IMPLEMENTED;
  750. }
  751.  
  752. /* void arcTo (in float x1, in float y1, in float x2, in float y2, in float radius); */
  753. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ArcTo(float x1, float y1, float x2, float y2, float radius)
  754. {
  755.     return NS_ERROR_NOT_IMPLEMENTED;
  756. }
  757.  
  758. /* void arc (in float x, in float y, in float r, in float startAngle, in float endAngle, in boolean clockwise); */
  759. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise)
  760. {
  761.     return NS_ERROR_NOT_IMPLEMENTED;
  762. }
  763.  
  764. /* void rect (in float x, in float y, in float w, in float h); */
  765. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Rect(float x, float y, float w, float h)
  766. {
  767.     return NS_ERROR_NOT_IMPLEMENTED;
  768. }
  769.  
  770. /* void fill (); */
  771. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Fill()
  772. {
  773.     return NS_ERROR_NOT_IMPLEMENTED;
  774. }
  775.  
  776. /* void stroke (); */
  777. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Stroke()
  778. {
  779.     return NS_ERROR_NOT_IMPLEMENTED;
  780. }
  781.  
  782. /* void clip (); */
  783. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Clip()
  784. {
  785.     return NS_ERROR_NOT_IMPLEMENTED;
  786. }
  787.  
  788. /* void drawImage (); */
  789. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::DrawImage()
  790. {
  791.     return NS_ERROR_NOT_IMPLEMENTED;
  792. }
  793.  
  794. /* void drawWindow (in nsIDOMWindow window, in long x, in long y, in long w, in long h, in DOMString bgColor); */
  795. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor)
  796. {
  797.     return NS_ERROR_NOT_IMPLEMENTED;
  798. }
  799.  
  800. /* End of implementation class template. */
  801. #endif
  802.  
  803.  
  804. #endif /* __gen_nsIDOMCanvasRenderingContext2D_h__ */
  805.